package com.simple.cloud.datasource.base;

import cn.hutool.core.util.IdUtil;
import com.mybatisflex.core.keygen.IKeyGenerator;

/**
 * mybatis_flex ID生成器
 */
public class MybatisKeyGen implements IKeyGenerator {
    @Override
    public Object generate(Object entity, String keyColumn) {
        return IdUtil.getSnowflakeNextId();
    }
}
